/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.adapter.driving.persistence.menu.mapper;

import com.lap.auth.adapter.driving.persistence.menu.po.MenuPo;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MenuMapper {

  void insert(MenuPo menuPo);

  int deleteByPrimaryKey(@Param("id") Integer id);

  MenuPo selectByPrimaryKey(@Param("id") Integer id);

  List<MenuPo> selectList();

  List<MenuPo> selectByPid(@Param("pid") Integer pid);

  List<MenuPo> selectByRoleIds(@Param("roleIds") List<Integer> roleIds);

  List<String> selectPermCodeByRoleIds(@Param("roleIds") List<Integer> roleIds);

  int updateByPrimaryKey(MenuPo menuPo);
}
